package gatperdut.chato.core.messaging.grammar.messinfo;

import org.json.simple.JSONObject;
import org.json.simple.JSONValue;

public class CreatePlayerInfo extends MessageInfo {

    public CreatePlayerInfo( String playerDataString ) {
        super( MessageType.CREATE_PLAYER );
        playerData = (JSONObject) JSONValue.parse( playerDataString );

    }

    private final JSONObject playerData;

    public JSONObject getPlayerData() {
        return playerData;
    }

}
